package com.yunxi.model.dealer;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 渠道商类型
 * </p>
 *
 * @author 
 * @since 2019-05-20
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("pms_partner_type")
@ApiModel(value="PartnerType对象", description="渠道商类型")
public class PartnerType implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "AUTH_ID", type = IdType.UUID)
    private String authId;

    @ApiModelProperty(value = "渠道商code")
    @TableField("PARTNER_CODE")
    private String partnerCode;

    @ApiModelProperty(value = "业务类型编号")
    @TableField("BUSINESS_CODE")
    private String businessCode;

    @ApiModelProperty(value = "伙伴类型(账户组)")
    @TableField("ACCOUNT_GROUP_CODE")
    private String accountGroupCode;

    @ApiModelProperty(value = "属性")
    @TableField("ACCOUNT_PROP_CODE")
    private String accountPropCode;

    @ApiModelProperty(value = "状态")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value ="CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_BY")
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value ="UPDATE_TIME", fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField("UPDATE_BY")
    private String updateBy;


}
